package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 新增敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult insert(WmSensitive wmSensitive);
    /**
     * 根据敏感词模糊分页查询
     * @param dto
     * @return
     */
    ResponseResult listByNameAndPage(WmSensitiveDto dto);
    /**
     * 修改敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult update(WmSensitive wmSensitive);
    /**
     * 删除敏感词
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);
}
